<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
  <!--  -->
  <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
      <title>
       <h:outputText value="Creer une nouvelle categorie"/>
      </title>
     <link href="../css/solutech.css" rel="stylesheet" media="screen"></link>
     
    </head>
    <body><h:form>
        <table width="100%" border="0">
          <tr>
            <td>
              <h1 align="center">
               <h:graphicImage url="/img/logo.jpg"
                                alt="Solutech Logo" style="height: 124px; width: 181px"/>
                <h:outputText value="Solutech-Shop Application"/>
              </h1>
            </td>
          </tr>          
          <tr>
          <td> 
     
        
        <f:subview id="adminbar">
          <jsp:include page="adminbar.jsp"/>
        </f:subview>
          </td>
         </tr>
          <tr>
            <td>
              <p>
                <h:outputText value="Creation d'une nouvelle categorie " styleClass="PageTitle"/></p>

              
  <h:panelGrid width="100%" columns="1" border="0">
					<h:messages globalOnly="true" style="color: Red; font-weight: bold; font-style: normal" ></h:messages>
					
               	<f:facet name="header">
               	<P ALIGN="CENTER">
						<h:outputText value="#{CreerCategorie_Backing.message}"
								style="color:green; font-weight: bold;" rendered="#{CreerCategorie_Backing.exist}" styleClass="LoginSuccess"/>
			   </P>
			    </f:facet>       
			  </h:panelGrid>             

              <h:panelGrid width="70%" columns="3" border="0">

                <h:outputLabel value="Libelle:" for="libelle" />                
                <h:inputText required="true" id="libelle"
                             binding="#{CreerCategorie_Backing.libelle}"/>
                <h:message for="libelle" errorClass="ValidateError"/>

                <h:outputLabel value="Description:" for="desc" />                
                
					<h:inputTextarea required="true" id="desc"
                               binding="#{CreerCategorie_Backing.description}">
                    </h:inputTextarea>
					<h:message for="desc" errorClass="ValidateError"/>

              

          


                <f:verbatim>&nbsp;</f:verbatim>
                <h:panelGroup>
                  <h:commandButton value="Creer"
                                   action="#{CreerCategorie_Backing.creerCategorie}"/>
                  <f:verbatim>&nbsp;&nbsp;&nbsp;&nbsp;</f:verbatim>
                  <h:commandButton value="Cancel" action="cancel"
                                   immediate="true"/>
                </h:panelGroup>

              </h:panelGrid>
            </td>
          </tr>
        </table>
      </h:form></body>
  </html>
</f:view>